import http from "http";

export = class Response {
  public static typeof: Response = new Response();

  /**
   * 响应体
   */
  public res?: http.IncomingMessage;
  /**
   * 状态码
   */
  public statusCode?: number;
  /**
   * 响应头
   */
  public headers?: object;
  /**
   * cookie
   */
  public cookie?: string;
  /**
   * cookie数
   */
  public cookieTree?: any;
  /**
   * 返回值数据
   */
  public data?: string | object;
  /**
   * 返回值二进制数据
   */
  public buffer?: Buffer;
}